home *** CD-ROM | disk | FTP | other *** search
- A provider module foo must provide the following routines:
-
- DEF FNfoo_init
-
- required by core library system. Load any libraries required, e.g. standard.
-
-
- DEF FNfoo_choices
-
- This routine must set up the following variables:
-
- net_domain$ Domain in which user accounts defined, e.g. "foo.co.uk"
- net_mail_server$ Name of machine serving mail, e.g. "post.foo.co.uk"
- net_news_server$ Name of machine serving news, e.g. "news.foo.co.uk"
- net_name_server1$ IP address of name server e.g. "194.80.132.3"
- net_ip_prefix$ Beginning of IP address to match e.g. "194.80"
-
- It may also set the following to other than the defaults shown:
-
- net_provider_variables$ A string naming a number of string variables (less the
- final $) to be saved in the Choices file ("")
- net_mail_protocol$ "SMTP" or "POP" for mail download ("POP")
- net_ka9q_protocol$ Connection protocol, "slip" or "cslip" ("slip")
- net_fixed_ip$ "1" if fixed IP address ("")
- net_time_server$ Name of optional NTP time server ("")
- net_nsq_server$ NSQ server ("["+net_name_server1$+"]")
- net_router$ IP address of machine user is connected to ("")
- net_moderators$ Where to send moderated posts ("moderators.uu.net")
- net_news_prefix$ Prefix for news control files ("Net")
- net_name_server2/3$ Optional alternative name servers
- net_news_groups$ List of provider-specific news groups ("")
- net_slip_login_file$ SLIPdial fragment to perform login ("")
- If "" then uses a standard segment based on:
- net_login_prompt$ Login prompt ("ogin:")
- net_password_prompt$ Password prompt ("assword:")
- net_protocol_prompt$ Protocol prompt ("otocol:") ("" implies none)
- net_protocol_reply$ Protocol reply ("slip")
- net_startup_prompt$ String sent before starting SLIP ("", implies none)
-
- The routine should then get user details, I suggest by calling
- FNstandard_choices
-
- If calling FNstandard_choices, it should also add to the Messages file:
- foo.PoPs:<pop list> Comma-separated list of PoPs
- foo.<pop>:<number> Phone number for each listed PoP
-
- If not calling FNstandard_choices, then it must set these variables:
-
- net_modem_driver$ Name of SLIPdial modem driver file
- net_serial_driver$ Name of serial block driver
- net_port$ Block driver port number
- net_speed$ Serial speed
- net_pop1$ Name of first choice (or only) PoP
- net_pop2$ Optional second choice PoP ("" if only 1)
- net_pop3$ Optional third choice PoP ("" if only 1 or 2)
- net_number1$ Phone number of first choice PoP
- net_number2$ Phone number of second PoP (if net_pop2$ <> "")
- net_number3$ Phone number of third PoP (if net_pop3$ <> "")
- net_account$ Name of user's account/node/userid
- net_mail_domain$ Domain for returned mail (if POP then net_domain$
- else net_account$+"."+net_domain$)
- net_ip_address$ IP address (if net_fixed_ip$>"")
- net_pulse_dial$ "1" if pulse dialling required ("")
- net_dial_prefix$ Prefix to use for dialling
- net_password$ Password needed to login ("" means enter at login)
- net_main_user$ Main user id
- net_real_name$ Real name of user
- net_organization$ Text for organization line
-
- It return value should be
- 0 User has closed window
- 1 All OK, user wants to proceed
- -1 User wants to go back to Initial window
-
-
- The module must also define
- DEF FNfoo_configure
- to do the actual configuration. This should return 1 if successful, 0 if the
- user closed the window or -1 if the user selected an Abort option.
- Easiest is:
- DEF FNfoo_configure:=FNstandard_configure
-
- If there are other things to be done, then it could call FNfoo_configure and
- then do some more customisation (e.g. setting up a replacement TCPIP FTP menu
- to include a provider's own FTP site.
-